package com.zsy.springframework.beans.facotry.jiekou.three;

import com.zsy.springframework.beans.facotry.jiekou.one.BeanPostProcessor;
import com.zsy.springframework.beans.facotry.jiekou.one.SingletonBeanRegistry;
import com.zsy.springframework.beans.facotry.jiekou.two.HierarchicalBeanFactory;
import com.zsy.springframework.util.StringValueResolver;

//可以获取beanfactory的接口内容，也有单例的接口的东西，
//一级接口的东西都有
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry {
    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";

    //在这里添加后置处理器的接口
    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例对象
     */
    void destroySingletons();


    //注解使用的 这俩方法
    void addEmbeddedValueResolver(StringValueResolver valueResolver);

    String resolveEmbeddedValue(String value);
}
